package org.commonsemantics.scigrails.module.users.group

import org.commonsemantics.scigrails.module.users.UsersCollectionType 
import org.commonsemantics.scigrails.module.users.security.Privacy 
import org.commonsemantics.scigrails.module.users.security.Status 

/**
* @author Paolo Ciccarese <paolo.ciccarese@gmail.com>
*/
class Group extends UsersCollectionType {

	String description;
	String membersCounter;
	
	Status status;
	Privacy privacy;
	
	static mapping = {
		table 'ggroupp'
	}
	
	static transients = [
		'membersCounter'
	]
	
	static constraints = {
		description (nullable:false, blank:true, maxSize:1024)
	}
}
